<template>
  <div>
    <input 
      type="checkbox" 
      :checked="checked" 
      @change="$emit('change', $event.target.checked)">
  </div>
</template>

<script>
export default {
  model: {
    prop: 'checked',
    event: 'change'
  },
  props: {
    checked: {
      type: Boolean
    }
  },
  created() {
    console.log(this.checked);
  }
}
</script>

<style>

</style>